package services.user;

import dto.user.LocalUserInfoDto;
import models.user.AniUser;
import models.user.AniUserRole;

public class AniLocalAdminService extends AniLocalUserService{

	public static Boolean isUserAdmin(String userEmail){
        AniUser oneUserAdmin = findUserWithEmail(userEmail);
        if(!oneUserAdmin.role.roleKey.equals(AniUserRole.RoleKeys.ANI_ADMIN.name())){
            return false;
        }
        return true;
    }
}	

